package org.jackysoft.service;

import java.util.concurrent.ExecutionException;

import org.jackysoft.data.ServiceProvider;
import org.jackysoft.entity.OfficeDocument;
import org.jackysoft.util.FileDownload;

import com.zhuozhengsoft.pageoffice.FileSaver;

public interface OfficeDocumentService extends ServiceProvider<OfficeDocument> {
	String printToPDF(String  docid) throws InterruptedException,
			ExecutionException;
   
	OfficeDocument findByRefid(long refid);
	
	FileDownload downloadByRefid(long refid);

	void saveDoc(long refid,FileSaver fs );
	
}
